<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY nbsp "&#x00A0;">
]>
<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:msxml="urn:schemas-microsoft-com:xslt"
	xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:Utils="urn:Utils"
	exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets Utils ">


  <xsl:output method="xml" omit-xml-declaration="yes"/>

  <xsl:param name="currentPage"/>
  <xsl:param name="contactNode" select="$currentPage/ancestor-or-self::Intro/descendant::ContactPage[1]" />
  <xsl:template match="/">
    <!-- start writing XSLT -->
    <article class="grid_5">
      <h5>
        <xsl:choose>
          <xsl:when test="$contactNode/commonName!=''">
            <xsl:value-of select="$contactNode/commonName" />
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$contactNode/@nodeName" />
          </xsl:otherwise>
        </xsl:choose>
      </h5>
      <div class="foot-page1">
        <dl class="dl1">
          <dd>
            <xsl:value-of select="$contactNode/contactDetails" disable-output-escaping="yes"/>
          </dd>
          <dd>
            E-mail: <a href="mailto:{$contactNode/contactEmailPagina}">
              <xsl:value-of select="$contactNode/contactEmailPagina"/>
            </a>
          </dd>
        </dl>
      </div>
    </article>


  </xsl:template>

</xsl:stylesheet>